Fixes @extend within a loop

This simple change fixes @extend within a loop. It may introduce another bug when combined with the interpolated extend selector - so if someone understands the scoping in Stylus and could help fix this issue properly, that would be awesome.

I also added a simple test case for it. Should also close #564, #939 and #953