I just wanted to mention that the dimen is not set to 0pt, the register was initialized that way, but there is no guarantee that after doing a `\newdimen` the register is 0pt if there was any very bad code involved. But you stated:
> TeX allocates a new register number and sets it to 0pt.