allow user's defined function in forecast.gts. Fix #3