Don't use the type ivar in variable predicates.

Using instance variables directly in the predicate methods (e.g. `const?`)
doesn't work if the object they are used in is a ConstantProxy instance.

This fixes #104.