Allow for case insensitivity in .reg value name.
Small optimizations in .reg parsing.