Fix incorrect removal of assignment in do_flag_restrict and do_flag_type

Fixes a few warnings about unsigned/signed and const/non-const
mismatches in flags.c as well.

git-svn-id: https://pennmush.googlecode.com/svn/trunk@1761 ba372814-4f39-11de-9ad6-1127a62b9fcd