Use deepcopy in _allocate registers, instead of manually copying attributes.