schema: add IsGlobal and associated tests

We should really get on the "last one wins" bandwagon at some point.