Fix width detection of memory access with bit slice, fixes #974