Fix deserialization of max_id in SearchMetadata.
Bump version to 1.0.5.BUILD-SNAPSHOT