Partial resampling tests and hardening.

Plus, the `length` option is now merged with the `width` one.
Updated dist version.