Added unit test for refs kind getter
Each reference type is optional
In the clang plugin, rename refs_by_line to "refs" so it runs, and fix the resulting failures. Close #337.