Fix clang warnings

The "make compilers happy" commit is just for that purpose only. The "const reference" commit fixes a real bug. Both make clang happy when compiling GR -- and, these are the only compilers warnings right now (at least on OSX).