[0.3.4] fix sorted-set interactions, deduplicate spark nodes

Signed-off-by: Eli Skeggs <eskeggs@globesherpa.com>