Fixes #3621: Move DDT fix to v1.7

---svn-pre-commit-ignore-below---

r28568 [[BR]]
Based on the MPI 3.0 count equal to zero has a clear meaning, no modification
of the original datatype are allowed (not in type map nor extent). Make it
clear in the code.
Allow 0-count cases to the contiguous memory check.