Support function definition in CBN

1. DLL update for function definition in CBN
2. Handle func def on preview