bugfixes in memory pre-allocation and statistics code
bugfix in pre-allocation for hair bvh nodes