py, compiler: Turn id_info_t.param into a set of flags.

So we can add more flags.
py: Properly implement deletion of locals and derefs, and detect errors.

Needed to reinstate 2 delete opcodes, to specifically check that a local
is not deleted twice.