CLJS-459: fix reduce-kv node visit order for sorted maps

Includes a basic test.