Added support for custom functions in combineLatest.