Move name in task and bound-task to options hash

This avoids a direct crash in bound-task and makes the name
possible to change when using task.