Go back to allocating environments on the heap