Fix flaky tests: don't rely on map iteration order.

Enumerating maps is random in Go. Due to a bug, in Go 1.1 and Go 1.2, enumeration
over small maps had a deterministic order. in Go 1.3, the enumeration is always
random.