SimpleNetworkWrapper message registration fix

changed to pass message class to channel handler, fixes crash when registering message

Fixes issue #397