CommonAPI: add warning for invalid RESULT/CALLBACK type