Corrected a bug introduced by MR for coefficient types. The test of the field_type of matrices was replaced.
field_type