Correctly set type and serialize correct value for References

Conflicts:
	CHANGELOG.md
BINARY is another candidate for special treatment. not sure but i think value would be stream in this case, but you probably want to output something like "binary data (302882 Bytes)"