use ShapeHandler in isElementValid
using apf::Up where possible in meshadapt