Added some monkey-patching to carray in common, to support the port of tests.
ported multidimensional tests from carray to blaze.carray.