make Rule.supportsLanguage() also work for PatternRules