serialization: add const to serializer inputs
add indexing serialization
Merge pull request #75 from thinxer/indexing_serialization

Add serialization for indexing