codegen: allow "type" property if it's NoAccessorMethod

Fixes bug 741862