RF: use abstract base class for integer check

Use numbers.Integer base class to check for integer instances.