Metagen updates

second batch of metagen updates from qtjs-generator.