rest-types: Replace `StringMap [(a,b)]` with `TextMap (HashMap Text a)`