Fix different zero-padding behavior between set and setSizeInBits