Added support for custom functions as type checkers