Make invalid `list_deriv_vars` errors more specific

- Updated errors for invalid variables given in `list_deriv_vars` to be more specific.