Add missing legend to plot

Add missing legend to sensitivity plot
Bugfix in dyn_saveas

Fixed a bug for the non-Octave version where only the last active figure
was printed instead of the figure with the actual handle. Octave
eps-version still needs to be taken care of.