fixing corner-case of last dimension in addSingletonDimension
fixing corner-case of last dimension in addSingletonDimension

sbodenstein/nn,bartvm/nn,Djabbz/nn,ominux/nn,Moodstocks/nn,forty-2/nn,eriche2016/nn,aaiijmrtt/nn,jhjin/nn,jzbontar/nn,lvdmaaten/nn,eulerreich/nn,joeyhng/nn,PraveerSINGH/nn,PierrotLC/nn,diz-vara/nn,LinusU/nn,vgire/nn,caldweln/nn,zhangxiangxiao/nn,mlosch/nn,ivendrov/nn,adamlerer/nn,witgo/nn,davidBelanger/nn,jonathantompson/nn,noa/nn,EnjoyHacking/nn,elbamos/nn,clementfarabet/nn,GregSatre/nn,colesbury/nn,kmul00/nn,rotmanmi/nn,lukasc-ch/nn,sagarwaghmare69/nn,Jeffyrao/nn,douwekiela/nn,xianjiec/nn,abeschneider/nn,nicholas-leonard/nn,andreaskoepf/nn,Aysegul/nn,hughperkins/nn,apaszke/nn