Add bool SameObject(), Change operator '==' and '!=' to compare object, not compare 'SharedObject<T>*'. Add operator< for container, it compare object too.