add merge to BaseObj
missing case for weakref.ProxyTypes

we can't call weakref.proxy on weakref.ProxyTypes
resolve $ref in PathItem