Expand localized tokens in the parser. Fixes #665.