Retrieve used outer object correctly
Retrieve value ref
resolve primitive types
resolve nested closure environment