function cloneData (data) {
  var clone = {};
  var parsedProperty;
  var key;
  for (key in data) {
    parsedProperty = data[key];
    clone[key] = isObjectOrArray(parsedProperty) ? utils.clone(parsedProperty) : parsedProperty;
  }
  return clone;
}
Clone component data.
Clone only the properties that are plain objects while keeping a reference for the rest.

@param data - Component data to clone.
@returns Cloned data.