fix codegen $.SegFunction -> $.Function
fix $.Function in classlib
func.js