Move uses of enum to bitflags!.

There are still others, but this is the first batch.
Many of these don't seem to actually be bit flags per se, but rather just values in an enumeration. For example I don't think that this enumeration is actually a set of bitflags.