CommonAPI: iOS: support Ruby lambda and proc callbacks