Makes SesameStatement.equals() tolerant to other implementations of Statement. hashCode() made similar to StatementImpl.