An attempt to make a dotnet object suitable for use as StandardObject and FuncallableStandardObject.