make sure scope calls to srcloc are shipshape, and throw errors on compilation