Fixed resetting preferences from .fdbsqlclirc

bug fixed, test added

This probably needs an `else { this.resultPrinter.setSink(sink); }` to handle all cases of being previously open (i.e. different sinks).