Fixed bugs with models relations:
- RefTo property doesn't work due to the typo.
- RefsTo property can't be assigned

Added tests for this functionality