Unify setUpEffectiveNodes

This may break compatibility for the unlink command, but I left them because not all tests for unlink passed.

PTAL