SPR-11505: Use deepEquals/deepHashCode for keys

Using deepEquals and deepHashCode allows for cache keys that work with methods that have arguments that are array types.