Fixes #4849: Move r32482 to v1.8 branch (headers: remove trailing commas in)

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

r32482 [[BR]]
headers: remove trailing commas in enum lists

Per http://www.open-mpi.org/community/lists/devel/2014/08/15576.php,
trailing commas are not valid in enum lists in C++ until C++11.

cmr=v1.8.2:reviewer=rhc