add baldr-record for writing records; add test for round-tripping streams