need ``asarray`` for all relevant variables, see #824 for problems with pandas