made scref const for value type

Avoids accidental assignment to temporary when a function that returns
an scref can be set equal to something.