Nested functions: Compile nested function definitions
Nested functions: Compile calls to nested functions correctly
Nested functions: Compile references to nested functions correctly