Hoist the test.
Specialize calls to avoid megamorphic dispatch.