Replace function selector jump table by more resilient linear time check.

eek. No way to determine these dynamically?