utils: simplified bit_coder's alignment functions.