fixes to the task register to support multiple tasks with the same name

This is needed in some cases where you have task wrappers and you wanted the wrapped task to be exposed over cmd line
Merge pull request #305 from erikbern/task-register

fixes to the task register to support multiple tasks with the same name