Replaced scalaxy loops with spire's cfor

Scalaxy loop has been a snapshot dependency that recently broke the build. We're switching to using spire's `cfor` loop for doing macro-expanded fast loops.

Fixes #809