test(compile): should not leak memory with top level comments
fix(compile): do not attach scope to top level comments