comms/Message{Handler,Dispatcher}: use template parameter for node type

This way, we can use these classes with other ProtocolNode-like
implementations...
comms/DataDeclarationBase.hh: added missing `#include <cmath>`
util/SArray.hh: added missing return statement in `operator =`