Pushes a fix that allow serialize method to be invoked multiple times on the same
serialization stream. Also it updates the deserialize method to accept iterators so
multiple objects can be deserialized from a stream.