Fix warnings with clang++
Cleanup, indentation
Add by-value serializer (useful when serializing iterators)
Implement iterator serializer and test it