Add assert statements to verify that we are dealing with Integers

Assert statements are not going to slow anything in release mode and
will prevent segfaults in debug mode. Change was done following advice
from Ondrej. Original comment:
https://github.com/sympy/csympy/pull/335#issuecomment-64804701