Correctly set type and serialize correct value for References

Conflicts:
	CHANGELOG.md
For the record the type of the property was being reset to STRING everytime unless the property type is specified.