Correctly set type and serialize correct value for References

Conflicts:
	CHANGELOG.md
Merge pull request #101 from phpcr/fix_reference_edit

Correctly set type and serialize correct value for References