Fix redundant evaluation of test in "for" (sdgoij/MatrixFrog)

This fixes #39