ter() can get or set terrain, while get_ter() just gets.  I needed a const function to get the terrain to be able to update generate to use the const overmap*s returned from the overmap buffer.  As for the bounds checking, it didn't like the nullret stuff in there as const.  I'll take another look at that tonight.