Hidden first-order phase transitions and large magnetocaloric effects in GdNi1-xCox