Module specific definition of numdummies with backward compatibility.