Add conversion of native and bytecode uPy objects to std::function