LCL: TTreeView: check OverlayIndex upper bound

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@42877 4005530d-fff6-0310-9dd1-cebe43e6787f
FpDbg: less memory rpe-allocation in scope-list

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@42878 4005530d-fff6-0310-9dd1-cebe43e6787f