Using hashtables for tokens makes no sense; we should move to objects and then have the type implicit.