list>modified/new: allow deep to be a function for modified checks.