[qtdeclarative] Mark item as dirty when nodes are cleaned

Otherwise they may not be recreated in the correct configuration.