Move the Pickler topLevelValue to an argument of pickle()