Fix iteration order for dictionaries

In Go 1.2, the iteration order was stable (insertion order). In other
versions (1.0.2, 1.3beta1), this seems to be random. For decoded
dictionaries, encoding them now guarantees insertion order.