Add isInstanceOf comparison.

I couldn't find another way to accomplish this with Criteria, but please steer me in the correct direction if I'm going about this in the wrong way. Note my comment about the constant and method names. I wasn't sure how to name these given the name collision with the instanceof operator.