Fixed wrong order of arguments to gdip_unit_conversion() calls

The argument order in the gdip_unit_conversion calls were wrong, i.e. dpi and type were switched.
Reported by Michael Tautschnig in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=688361