Change CL_SpyCycle to a template function that takes forward or reverse iterators.

Fixes spy cycling.

git-svn-id: http://odamex.net/svn/root/branches/rend32@4138 b0bcef46-2027-0410-bd56-ab726e9a1d04