Added exception throwing for double-release of resources in IndexPool.
Bugfix: Incorrectly initialized Texture object creates duplicate
releases during finalization, resulting in incorrectly allocated texture
data.
Cleanup.