discrete inputs (i) map to 1x registers, analog ins (IW) map to 3x registers. I am not sure you can directly map output bits to 0x registers, the configuration suggests you can only map %M to 0x registers.
In unity, you do need to enable "Mixed Topological and State RAM" on the configuration tab for the processor. You can then also set the maximum ranges for each type.
I vaguely remember this only being added in later versions of Unity but not 100% sure.