Auto-styling additions, fixes, and optimizations

Added ability to use a $ to indicate that only the key should be
translated.
Fixed a bug in the template parser that would have caused some issues
with auto styling percent syntax on single word identifiers
Made minor optimizations to the auto-style loop