Don't directly bitwise-OR gateway types together to represent the types
of gateways a principal may create.  Instead, bitwise-OR the various
values of (1 << type) for each type.