Take a cheap early exit for const, * and & (ROOT-6909).

(cherry picked from commit af66e1e8ebfb3a4b5c440aed8323389a699d6d70)