Override equals/toString/hashcode in Locators and...

Add test for chaining locators in ByNested.

Fixes #3
Fixes #21