Fixed bugs in candecomp and rcandecomp.