Fixes #3712: Bring r28909 to 1.7.3

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

r28909 [[BR]]
MCA/base: fix some warnings and an error in the MCA variable system
Fixes #2965: MPI-2.2: MPI_IN_PLACE support is missing in MPI_ALLTOALL

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

r28952 [[BR]]
Add simple algorithms to support MPI_IN_PLACE for MPI_Alltoall, MPI_Alltoallv, and MPI_Alltoallw.

Working on faster algorithms for tuned that will come at a later time.

cmr=v1.7.3:ticket=#2965

r28953 [[BR]]
revert change that shouldn't have been part of r28952
Fixes #3674: MPI-3: Support for large counts using derived datatypes

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

r28932 [[BR]]
MPI-3: add support for large counts using derived datatypes

Add support for MPI_Count type and MPI_COUNT datatype and add the required
MPI-3 functions MPI_Get_elements_x, MPI_Status_set_elements_x,
MPI_Type_get_extent_x, MPI_Type_get_true_extent_x, and MPI_Type_size_x.
This commit adds only the C bindings. Fortran bindins will be added in
another commit. For now the MPI_Count type is define to have the same size
as MPI_Offset. The type is required to be at least as large as MPI_Offset
and MPI_Aint. The type was initially intended to be a ssize_t (if it was
the same size as a long long) but there were issues compiling romio with
that definition (despite the inclusion of stddef.h).

I updated the datatype engine to use size_t instead of uint32_t to support
large datatypes. This will require some review to make sure that 1) the
changes are beneficial, 2) nothing was broken by the change (I doubt
anything was), and 3) there are no performance regressions due to this
change.

Increase the maximum number of predifined datatypes to support MPI_Count

Put common get_elements code to ompi/datatype/ompi_datatype_get_elements.c

Update MPI_Get_count to reflect changes in MPI-3 (return MPI_UNDEFINED when the count is too large for an int)

r28933 [[BR]]
MPI-3: fortran support for large counts using derived datatypes

Jeff:
 - Make sure not to go over 72 characters.  Love Fortran!
 - Ensure to include 'mpif-config.h' in Type_size_x.

r28936 [[BR]]
Add missing f08 binding declarations for MPI_Count functions

r28954 [[BR]]
MPI_COUNT_KIND is defined in mpif-config.h

r28956 [[BR]]
Propagate the use of MPI_COUNT_KIND everywhere.

r28964 [[BR]]
This define is not needed in mpi.h (it's private to the
implementation, and is already included in opal_config.h)