Improved integer range handling.

Began improving PCRE field handling as well. I'm afraid the changes are
fairly heavyweight, however, and hence quite unfinished. We proceed
apace with the pace of a Season's gait.

Which, given that this is Canada, is altogether slowly.