Fix FriendDecl source location and range for class templates and function declarations that don't start with 'friend' keyword. Add more unittests.