Minor update

CMake
- added -fPIC flag for object generation

C++
- added template metafunctions to convert Eigen Matrix types into
  Array types
- added mxArray_to_integer, mxArray_to_1dreal & mxArray_to_1dcmplx
- some small cosmetic changes