When you say matrix are you referring to the array? What you're describing is the default, they are global. When you change layout the value at 1,3 should be the same unless you pressed a key.
Maybe you unticked global on the array object although that would be unusual. Or commonly people have events to reset the array on start of layout which can interfere with it.