add RID::equals()
Merge pull request #145 from codemix/rid-equals

add RID::equals()