Compute GDK magic numbers

The '8' is the number of bits per data block. To make this more clear,
it is now being computed as CHAR_BITS * sizeof(value[0]).
Add TODO items