Fix output pickle, and export more locals in the testBins