Inverness Caledonian Thistle defender Gary Warren has signed a new two-year contract less than 12 months after joining the club.