When there is a function with metadata/token parameter/return type, InsertFunctionStrategy will crash.
This patch fixes the problem by falling back to create function declaration when the sampled function contains metadata/token parameter/return type.