Stop schema_types from being set in Envelope.
Stop setting unnecessary envelope attributes.