schema: add IsGlobal and associated tests

I always get them mixed up. Want me to change to -1?