Fix generic function callback argument order

The original function name should be the first entry.
And adds some minor fixes for custom importer overloading.
Add custom importer to context options