Various improvements to the polyhedron modules and test code.