Handle unset indexes in parts array
Stricter comparisions
Handle cases without `$rel` param.
Add test for empty rel
Refactoring to 2.0