made __getitem__ returned object dynamically typed via to<class>() cast (not yet for all ilwisobject types)