model/new: allow modified() deep param to be a function.