back-port: replaced scalaxy-loops with spire cfor
Merge pull request #814 from echeipesh/fix/remove-scalaxy

replaced scalaxy-loops with spire cfor