AABB helper functions, un-explicit up-cast in vector, and tabs-vs-spaces tidy up