convert Bags to object-like records, to allow different types to make different {sampling,exhaustive} choices