Fix segfaults for peel and block transformations

Fixed: peel(array beta_loop), segfaulted on non-loop beta-prefix instead of returning 
Fixed: block(array beta_stmt1, array beta_stmt2) segaulted when stmt2 was not the last statement in the scop due to linked list deletion scheme.