waitForCapsuleFuncIn/Out fixes; Add CNodeConnector::waitForCapsule() function