Fix "imresize does not work with size = int"

Solution from http://mail.scipy.org/pipermail/scipy-dev/2010-July/015132.html

Also adds test_imresize4.
Merge pull request #3357 from nh2/fix-imresize-int

Fix "imresize does not work with size = int"