mksh: make the function name overridable in sub classes

... like in POSIX.pm
mksh/ksh: s/local/typeset/

'local' is unknown to ksh93.
ksh93 supported

Tested with ksh93 packaged on Ubuntu as version 93u-1