Move part of macros.h to grompp-impl.h

Part of #1415.

Change-Id: I360ae1f220b6c51e90edbbe136053fd2e1c0ad5b