Fix Issue 16: Values of bit type are read incorrectly

Thanks Lilyevsky