Bugfix to select the right collapsible target ul/ol

Only select direct ul/ol children inside the processed LI item
Small code optimisations