Directly map field IDs to localized values

This change makes every localization lookup a simple map retrieval rather
than iterating the entire fields array each time.
Merge pull request #492 from EricRahm/localization_perf

Directly map field IDs to localized values