Fix deprecation warning by using GeometryTypes, ReferenceElements, resize and more
finitelements did not work since the change to CMake as the Alberta flags were not added.
Further a bunch of deprecation warnings got fixed.
Edited by Christoph Grüninger