Fix some cases where StringRef was being passed by const reference. Remove const from some other StringRefs since its implicitly const already.