Expose the variable-size envelop refnum field in the API