gc: Keep debug statements at beginning of scope where possible