Fix export of Resample and add minimal doctest.