Added serialization tests, bug fixes.
Add ability to force links to be a collection.