Fix bug in Entity::removeProperty and in QuadTreeTile::freeResources