The picture below shows what has been fixed; in both cases, a thin-stroked rectangle is aligned to the grid, but after these fixes everything else is aligned too: the guide, the guide origin, the selection cue, the tick marks on the ruler.