Include all copies of equivalent nodes. Fixes #3737.