Add nested function refs
build with nested function refs
Merge branch 'nested_function_refs'