fix Issue 3032 - No stack allocation for "scope c = new class Object {};"