scripting: update code generator for sasl_may_impersonate hook