Switch max_length and max_value to 64-bit integers