Clean up and fix of PoolAllocator constructor.
Fixed get-functions in ResourceHandle.
Clean up in main.