r6159: Move some more general ndr stuff (alignment calculations) to ndr.pm