Change sotNumberDofs to setSize to fix compatibility with sot-core.