Remove an unused import.
Fix another insignificant typo.
Include `cellvars` of a cell in the set of possible `freevars`.

Makes no difference now, given that all `cellvars` are also in `varnames`, but still.
Revise the purposes of various CodeType flags.