Introduced SlotArray struct which uses bits of the length for flags.
Changed length type to int.

This saves four bytes for an empty signal on 64 bit. It might result
in worse alignment, but we'll see - it is easily changed.
Fixed atomic load/store.