Implemented minimal necessary cycle detection to avoid stack overflow in c.s.t.j.code.Types::asSuper Reviewed-by: vromero