Performance: perform common checks first.

We were checking a closure (which is rarely used) first, now we check
for OWLClassExpressions first. Much more sensible.