Support for fetch_related with SafeReference(List)Field. Fix wrong use of id_set variable.