Fixed a few remaining instances passing temporary Scope objects to const references.