Now periodicity parameters are arguments of IceModelVec2T::init().

Also: fixes pedantic compiler warnings ("unsigned int" vs "int").
Classes derived from PGivenClimate use IceModelVec2T::average() in update().