Converts a kwk::shape into its corresponding kwk::stride, keeping as much static informations as possible.