fix for IRIValueType always being an js Object (code completion already
di this)

fix for Custom/Local type constructor call parameter check

added 2 tests