Time array

Includes the pervious PR
- support for inserting []bool
- support for inserting []time.Time
- refactored some common code around encoding the array header