Make parser.Stack a proper Mapping

We no longer iterate over things in dependency order, so get rid of the
iterator methods that return values instead of keys. Instead, make
parser.Stack conform to the standard collections.Mapping interface.

Change-Id: Id66b2da4ba8e4335c72f1b538abfc2e97eab1e20
Merge "Make parser.Stack a proper Mapping"