change untyped _namesToValues[name] to switch statement
removed brackets around throw messages
Merge pull request #144 from prezi/java-compatibility-hackery

change untyped _namesToValues[name] to switch statement