Fix for not resolving proxies when building a reference

When a reference is loaded from JSON which is a proxy, the reference is being resolved instead of being added as a proxy.  This can cause serious performance issues when the JSON is being loaded from the network.