expr_is_a function

Test that the expression itself is of a specific class.