Invalid null check in JSON parser caused infinite loop when encoding lua numeric arrays