Fix loop-recur tests to work well on PyPy

PyPy deals with recursion limits differently than CPython, but we know
for sure that it has a limit less than 10,000, so I set up my recursive
fn call to recurse 10,000 times.

I also simplified a bit by using a sum fn instead of factorial.