libcore: use unboxed closures in the fields of `Scan`