Specialize STACK-REF over the stack nesting depth.