added Trait.__instancecheck__ for seamless integration