Fix #76 and #74: correct handling of () output parameters