Update test.cpp to remove RESAMPLER_MAX_DIMENSION limitation
C++03 portability

Previously this relied on C++11's ability to template
using a class/struct local to the current function.
Merge pull request #6 from rsaxvc/subrect-api

Update test.cpp to remove RESAMPLER_MAX_DIMENSION limitation