fix bug in AstyanaxClient serialization.