Rename undim -> ndim, udtype -> dtype