Introduce package level `fitsInCodeUnit`
Fix bugs using `fitsInCodeUnit`