fix failing sampling-state test

need to explicitly use Matrix::colSums on sparseMatrices--but why???
browser file clearing test fix

which gets all tests I have so far written to pass.