Renamed ManagedStack to ScopedStack, and moved it into Generator.hpp