Cache Ref objects instanciated from dicts alongside those created with strings