Small changes in memory and RSXIOMem

Some bugs fixed, some other changes.