Add slot references to upvars.
Add debug printing for upvar/local slots.