-- Fixed an issue leading to infinite recursion in Environment.scala.
Likewise, increased default stack size to 1MB when the software is run, to deal
with stack overflow errors. Updated test cases accordingly.

Signed off by: Mark Farrell<markfarr2011@gmail.com>