Ground-state degeneracy and complex magnetism of geometrically frustrated Gd2Ir0.97