To what extent did Irish culture impact on Leonora Carrington’s writing and fantastic imagery? Sean Kissane explores the connections as the retrospective at IMMA continues