Feature/distance

1. Add missing dispatch calls (for some geometry combinations the dispatch calls were not defined).
2. Add test cases for some geometry combinations (that were not previously explicitly tested).