Implement custom import overloading
Fix generic function callback argument order

The original function name should be the first entry.