Fixed nested function data type cann't be exactly written to template

For example, shim's exports function is nested