cleanReactiveStateValue = (value, schema) => {
  if (typeof value === 'object') {
    value = {...value};
    if (schema) {
      value = schema.clean(value);
      schema.validate(value);
    }
  }

  return value;
}
Given a value to be stored in state, this functions clones, cleans and validates it
@param {Object} value The value object
@param {SimpleSchema} [schema] Optional schema for validation
@returns {Object} The cleaned value