ruby: slicc: avoid duplicate code for function argument check