bsp_to_polygons() can now output only triangles on demand

The second parameter controls the functionality.

A test, `tests/bsp.c::test_bsp__tree_can_produce_triangles_from_quads` was added for the task.