check that parameters typeHint are valid klass
use a proto function as object between the rewriter and the script