Add checks to parse 3x3 or 4x4 matrices, also use error from `mathutils_array_parse` instead of overwriting.