Fix FunctionSet.parameters(resp. FunctionSet.gradients) to check the length of parameters(resp. gradients) in advance of assignement
Fix FunctionSet.parameters(resp. FunctionSet.gradients) to check the length of parameters(resp. gradients) in advance of assignement

ktnyt/chainer,ronekko/chainer,muupan/chainer,jnishi/chainer,wkentaro/chainer,t-abe/chainer,chainer/chainer,keisuke-umezawa/chainer,wkentaro/chainer,cupy/cupy,keisuke-umezawa/chainer,kikusu/chainer,t-abe/chainer,cemoody/chainer,niboshi/chainer,delta2323/chainer,ktnyt/chainer,wkentaro/chainer,benob/chainer,ysekky/chainer,truongdq/chainer,keisuke-umezawa/chainer,hvy/chainer,cupy/cupy,muupan/chainer,okuta/chainer,sinhrks/chainer,ktnyt/chainer,okuta/chainer,ktnyt/chainer,hvy/chainer,kiyukuta/chainer,niboshi/chainer,hvy/chainer,cupy/cupy,jnishi/chainer,AlpacaDB/chainer,jnishi/chainer,niboshi/chainer,chainer/chainer,chainer/chainer,keisuke-umezawa/chainer,anaruse/chainer,AlpacaDB/chainer,tkerola/chainer,wkentaro/chainer,kashif/chainer,jnishi/chainer,aonotas/chainer,rezoo/chainer,hvy/chainer,chainer/chainer,kikusu/chainer,truongdq/chainer,benob/chainer,okuta/chainer,sinhrks/chainer,niboshi/chainer,okuta/chainer,cupy/cupy,pfnet/chainer