MIST-178: add function to get all keys/values as a map