Fix csvlook and csvstat properly. Closes #346. Closes #363.