wscript: simplify type model