Distributed Expand and Merge

Found a second bug that was causing the duplicates not to get removed.  Note to self: type-checking
can be helpful and don't assume code pieces are working the way they're supposed to -- verify!
reactivated for/work in distributed code