Changed method parse.

If a key occurs more than once, then choose a value first.