Add write accessor to set terrain values.
Convert writing accesses to map terain to use the new ter_set() method.
The payoff, qualify map::ter() as fully const.