Implement NativeFunction class for native function binding.