Metagen updates

imported changes from qtjs-generator metagen