Fixed deleting of CObjectManager

 * fix in CApplication destructor
 * re-enabled unit tests
Added check and warning about non-power-of-2 textures