Assert if update-in passed a nil function

Also treats a nil argument to f-or-opts in update-settings as a map.