StateServer: Use unordered_map instead of map where it doesn't break tests.
TODO: Fix tests to not expect optional fields in a particular order.