Ensure no-output commands control output stream

If a command has no output specified (|.) append to it
a null command to ensure npfo-none will stay open if
the last command redirects its standard output.
Clear additional block-related variables
Simple examples of 2D Fourier transforms with Madagascar

Adapted from http://www.reproducibility.org/RSF/book/bei/ft1/ft2d.html