preserve order of keys in array maps