FIX: integer rule bug when used on a datatype in PARSE.
TESTS: added regression test for this issue.