Fixes the is_chan check.
Explicit call to gc to fix leak.
GC gets called only when a process sleeps, which our scheduler processes don't do. We can safely call gc before each tick.