Fix dependence on map iteration order.

Go map iteration order is undefined, and the upcoming Go 1.3 release makes it more random.
Merge pull request #54 from dsymonds/patch-1

Fix dependence on map iteration order.