Halfsize can now be specific in the sc file for AABBTree
Fixes for compiling under visual studio 2010

Biggest issue is for each style loops.

Also added some debug messaging.