FoldingPanel: cleanup public API and fix some issue with folding indicator state lost