common: Check parameters more rigorously.