QFileDialog last used paths storage improved

Added more variables (one for each file dialog type) as requested by @kimmov.