Check that inputs to select_vars are all numeric.

Closes #643