Fix matrix elementwise products in the sym module.

This fixes a compatibility problem with sympy 0.7.2.
Clean up the LDC 2d regression test.