Add functor for boxed closures