Fix rendering debug bounding volumes and some tests.