Avoid boxing in ScopedResource.State
internals
#3140
Draft
ScopedResource.State
internals
#3140