Create a new ScopeResult from a tuple variant
This method will create a new heap-allocated ScopeResult. It is primarily meant for low-level language bindings.