Fix value passing for script classes

QString doesn't seem to passed as string.
Fix property name for file name selection in dialog()
Added fileName() method for File scriptable class