Preparing MDArray to work with non-numerical types. Fixed get_type and added tests to catch operations between MDArrays of incompatible types.