Remove heap allocations from Scoped<T> reference counting
#780
+111
−31
Scoped<T> reference counting
#780