Polyfills for JSON, AbstractCollection: getHash, baseObject handling