Added rank comparison to Statement::equals

-> 71554
Merge pull request #269 from wmde/statementequals

Added rank comparison to Statement::equals