Fixed bug in the old parser (DParseTask) which was compering min < Integer.max instead of max < Integer.MAX which caused longs to be encoded as ints.