introduced object_helper and refactored code into objectinst/objectdecl (the latter is an alias of typedecl for now), no need to have a type_helper that fits all purposes