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