[layertree] add default argument for checkstate to insertLayer function