Adds a new constructor that takes an array of component values. Refactors the meat of the two constructors to an init_mask method.