Try to fix BUG #2599

Not sure if this is a good way to go about it, but it seems to work.

Might be good to get rid of all the INT64_MAX/MIN stuff in parser.pyx and replace with np.iinfo(np.int64).max/min instead.