Serialization can handle an empty serialization object. Also add tests for isExternalObject()