add SID functionality to classes, to make classes work correctly

class scopes now make sense, where 's:' is the default
scope_modifier, but you can override it and use 'g:' to make the
class globally accessible. These classes can inherit from
script-local classes and still work fine.