Fix IntegerExponent erroring on symbolic input.

IntegerExponent's pattern was changed to evaluate
only on [_Integer, _Integer] input.
Add IntegerExponent test to verify symbolic behavior.