bugfixes and support for parameters for traits and resourceTypes