Make variable trait "is TypeObject" fail with a better message for now