Fixed small bug when writing 3D array in xsf file.
Merge pull request #1 from GkAntonius/master

Bug fix