added option to collapse subtrees by default
ensured lists with selected checkboxes are always expanded
Merge branch 'master' into gh-pages