Fixed bug where size of %val didn't match %nterm under certain situations.
Basically, the tempseries_g was only able to increase in size, which is
how the mismatch occurred.