Check for malformed parameters
Check that params is a hash with indifferent access under Rails
Use class methods.
Raise a MatrixParamsError for malformed parameters.