Fix prism output up to order 4 (but no higher right now), fix the use of face IDs for generic 3D elements