schema: add IsGlobal and associated tests

It's almost getting to the point where we can migrate most of Job's methods to Unit and remove it entirely