matrix_converters function

Coerce R objects to block or diagonal matrices