Struct that iterates over keys or values of a StackTreeAA.
Uses opApply instead of the more flexible ranges, because I haven't figured out how to iterate efficiently and in sorted order over a tree without control of the stack.
See Implementation
Struct that iterates over keys or values of a StackTreeAA.