Fix bug in Item::equals
Merge pull request #169 from wmde/statementcompare

Fix bug in Item::equals