On character sums and exponential sums over generalized arithmetic progressions. (11th January 2013)