fix warnings
remove code generation suppoort for nested functions
Add type argument to new_*_Load calls.
Add type argument to new_*_Store calls.