Misc bug fixed in syncing inactive entities

@Wilduck this fixes a few bugs related to syncing inactive entities. There were a couple places in the syncing code that used objects rather than all_objects when syncing entities. Also, manager utils was using 'objects' as the model manager for some of its functions, which was unneeded since the manager was already being passed to functions.
Can this be broken up into two separate tests?