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 #53 from dsymonds/patch-1

Fix dependence on map iteration order.