Fixed erroneous event bitmasks. Optimize LogicComponent memory footprint.