Raise an error when lists aren't assigned properly.

Better error messages for some other errors.