Add simple scope handling code (alloc/store/find).