Adding initialization code for freq,phase and slice dims as well as more comments to niftiApplyXform for the bug.