Fix swig argument constraints. Thanks to Craig Hollabaugh for the hint.