For some reason which I do not remember, registers now require the knowledge of their type before the generation step. I'm pretty sure I have done this for a reason in the time. Double check the reason and check if this can be avoided now.