We tweaked things in 5.2 so that you can change the 'steps' attribute and assign data to the x variable in the same script for a StepSlider object. See this example for storing/retrieving presets:
https://liine.net/en/community/user-library/view/525/