Moved NSIsKinds implementation to a better place.