check accumulate datatype-op compatibility

This commit only improves error checking in the ACC/GACC paths.  It does
not add or remove any actual functionality available to non-erroneous
programs.

Suggested by Jed Brown:
http://lists.mpich.org/pipermail/discuss/2012-December/000214.html

Reviewed by dinan@.