handle CExpr equality of static fields in pattern matcher (closes #2633)