This changes adds several utilities for working with bit mask enumerations, including functions to compute bit masks from lists of enumeration values and vice versa. Unit tests have been added to cover these new utilities.