Fix for ObjectManager, also added a Pool debug flag