Start porting multi-dispatcher to NQP.

Some of the complex bits are commented out, and it doesn't quite work
yet, but this gets the overall algorithm translated.