MethodCall: callbacks shall initialize *nbOutputs to avoid segfault
Description
In case the callback used to implement a method call does not initialize *nbOutputs, it might lead to a SEGFAULT since the parameter was not initialized by library before the call.
Fix
The library shall initialize the parameter before providing it to the user callback. In case the user does not set the *nbOutputs its value shall be 0.