fix facet orientation computation in mesh_build()
fix array sizes in CMesh.setup_entities()