Fixes issue #10 is_array() should check if type is table first.