optimize Find all references for file scoped symbols

add a test for "byref" type colorization