Add first_arg_dependent_memoize_nested. Also, fix first_arg_memoize.