Replace GenericReferenceElement by ReferenceElement