Fixed a cache condition in interfaces._utils including test.
Removed superfluous import in last commit
Force the cache to use hashes of tuples as keys as some s and axes were not hashing to the same value.
removed trailing whitespace
merge with upstream copy