scoped bind and use now take a const ref

Made the reference to the object being bound or used const. This makes sense as the usage of a resource should not alter the resource itself. In case modification is required, thread-local storage should be used.