Added handling of TemporalPrimitive and ReferenceSystem.code as special cases.