allow calling functions wrapped in two of types (should cover the usual cases)