Modified last with_scope example

I found that when assigning variable within a scope, you must move your for loops outside of the scope tag. There's was also an issue on the engine where this was discussed:

https://github.com/locomotivecms/engine/issues/375