Update for language changes

-   `&fn(...)` -> `|...|`
-   dedo
-   `Cell<T>` -> `RefCell<Option<T>>`