Hoist fnk definition outside component constructor.

Put the fnk outside of the component constructor to avoid creating checkers on
each invocation. The component-fnk does not close on anything in that scope, so
hoisting is safe.

Resolves #44