Updated isinstance() test to match all integer types
Updated to reflect change in gen_integer()