Referenced document can be a simple MongoId and not an array.
Document getters could return null values thus we shouldn't do anything.
Merge pull request #4 from jhuet/fix/serializer-null-values-from-getters

Checking null values from document getters in serializer
Add test for null getter
Remove stray file
Tiny correction
Adding new REST extension
Small bug fixes for serializer
Merge pull request #5 from superdweebie/rest

Rest
Update dojo store generation
Another update for dojo store generator
dojo generator fix
Handling reference being a simple MongoId.
Testing reference being a simple MongoId.
Complete manual merge. Ensure all tests are green
Custom type serializers working
Remove IDE test file
Merge with dateSerializer branch. Fix broken test
Adding maxNestingDepth as a config option.
Implementing maxNestingDepth to the serializer.