cleanup dead code
fix isType predicate for objects (not tables as in lua)