Workaround for Julia 0.2.1 range iteration bug (fixes #8)