Add varlen dataset schema-detection and message-converter helpers (#5908)