Adds a bitset type. This is needed to test Device parameters
in various places. It represents a set of N bits in the form
if a uint64 slice. Individual bits can be set, unset and
tested.

Fixes read example to use the bitset.