Round up to a multiple of a byte when computing allocation sizes.

Fixes out of bounds write in side_effects