[NL] Use MeshElement's dimenions and npoint in ShapeFunctions.