Dual number interface for Lua.