Fix castings to WampEndpointConfig (may be wrapped on some websocket containers).