chaining equalities concatenates paths

Suggested at #389