Add simple weeding checks & tests.

Check that the left hand sides of assignments are lvalues,
and that break and continue only occur inside loops or scripts.