Fixed bug in diff calculations when session state contains Arrays.

Change-Id: Ic9cb3e15d51e7f0b7f6ea617665e7f63d5668c1f