Fixes #3464 : replace use of ifvarclass for simple class expression