gio: use a custom enum for file copy flags
make copy and paste in same folder equivalent to duplicating

[bug #722726]
correctly set the SIDEBAR class to the toolbox