[yasp] Implement Entity::type()
The type()
implementation was inherited from the default implementation which obtains the type via the geometry.
However, the geometry type is always GeometryTypes::cube(Geometry::mydimension)
and can therefore be implemented much faster.
Edited by Timo Koch