Parameter support.

Add SqlKind values INPUT_REF and LOCAL_REF, and use them to remove some "... instanceof RexInputRef" code.