Auto expand nodes on check in LayerTree

replace #508