Kew should treat function objects as promise-like