respect matrix_type
when coerced into matrix
#77
Merged
matrix_type
when coerced into matrix
#77