refactor DataPipeline format conversion, allowing for arrays of refs

@kbarrette