Redmine#3577: respect ifvarclass