Ensure aliases are invoked for recursive tasks

Closes #2650