Constructs an alist from map.
Example:
(map->alist (persistent-map 'foo 1 'bar 2)) => ((bar . 2) (foo . 1))