Tweak a few container methods for checking isShared.