Correctly set type and serialize correct value for References

Conflicts:
	CHANGELOG.md
you could translate that to PropertyType::UNDEFINED. but your approach is just as well. PR seems good to me, go ahead and merge.