Added bitflag toggling.

This adds the ability to toggle fields on bitflags efficiently.