Created the lib.check_types.is_complex() function.

This is used to determine if a number is a Python or numpy complex type.
The lib.linear_algebra.matrix_exponential.matrix_exponential() function now uses lib.check_types.is_complex().

This fixes the function for complex matrices.