added tests for resampling functions, bugfixes in imagefile.py and
grids.py