On autoequivalences of some Calabi--Yau and hyperk\"ahler varieties