parse_optional_int should return table with token and optional int

There is an error in the function that checks whether a token accepts an optional int value. This affects the protocol that may accept an optional integer as extra parameter.