Fixed value return on varint types
Fixed wrong allocation