Skip Java immutable objects in session when processing the accessed attributes

We can skip immutable value objects in #updateAccessedSessionAttributes() when populating potential changes for session management. This is good optimization when the session is full of values. Do less serialization and I/O (sometimes none).

Issue: SPR-11738