Add support for multiple files of one loading job (f.e. DICOM series).

Also, fix all compilation warnings :D.