Added rank comparison to Statement::equals

-> 71554