Map an array of options to a binary bitfield as a string or integer, and back again.