Implemented for loops for numeric ranges

Added for loop test case
Fixed temporary space allocation bug
Test script now allows running a subset of tests