More test on noise algorithm for fractalwaves.

Some code cleanups.

Signed-off-by: Jérôme Benoit <jerome.benoit@grenouille.com>