Fix serializing IfcGeometricRepresentationContext

Backport of 87d4864725:

- Fixed bug where IfcGeometricRepresentationContext
  seemed to have derived attributes, where it shouldn't