Add associative REPR API.
Refactor elems.
Implement associative_delegate.
Switch NQPCapture to use associative_delegate.
Switch QAST over to associative_delegate.