support exporting lists of a single item as a one column CSV
fix type error when completing an import
made some defmethods, defgenerics to avoid style warnings
make sampling iterate clause allocate a variable if needed
added run-all-tests function