curry raises error on non-callable input