beginning on support for partial bytes, c implemention is not working correctly

Signed-off-by: Mattias Andrée <maandree@operamail.com>
screw that, I am not doing vala

Signed-off-by: Mattias Andrée <maandree@operamail.com>
fix error in partial bit support for c implementations

Signed-off-by: Mattias Andrée <maandree@operamail.com>