Canonical Cohen-Macaulay property and Lyubeznik numbers under Groebner deformations