New variable ggtags-bounds-of-tag-function

to customise how ggtags determines the tag at point.
(thing-at-point 'symbol) doesn't work for some major modes.