Move type registration out of construct_vhdl_ty.