Factors for the Generalisation of Identity Relations by Neural Networks