Fixed case where the translator would attempt to translate a nonexistent definition.
More null checks.
Allows label indexes to be reset for testing.
Fixed map usage. Fixed test issue.
New tests from parsing tests.