Fix warnings, add is_sio to check if an object is an sio.