Make the fix compatibe with old versions of Rakudo
Make the fix compatibe with old versions of Rakudo

Also optimize by converting the run-time check within a loop into a
constant.

LLFourn/p6-DispatchMap