start of port to matlab

- ismatrix incompatibiliy circumvented
- added array_equal since matlab asser() requires scalar logical
  and modified some failing test to use it
several matlab compatibility fixes, all tests now pass
version bump