Handle triple click with surface fragments

Also change the type argument of the currently-unused 'closest'
expandRange mode to be a instanceof check, instead of a
string type check.

Change-Id: I9282be1a01bd3559c3c565b3237d6ac7a274dada
Merge "Handle triple click with surface fragments"