PATCH: Implement shouldExpand/Collapse delegate for CPOutlineView

The issue had been report long time ago (issue #727), today I facing it and decide to fix it