The panel list once had a head preceding the actual list/array, with palette number (to control the placement) and initial visibility.
This feature was dropped with CS3, instead you have to shuffle them around yourself, using PaletteRefUtils. More work, but also more details exposed.
Reminds me I have to do something similar myself, I have produced too many panels recently.