Optimize the construction of the source-destination map in ST_ShortestPathLength

* Close the ResultSet
* Select only columns SOURCE, DESTINATION
These are hard-coded (and upper-case) to avoid having function signatures that are too long. So I guess I don't need to use `TableLocation.quoteIdentifier`, right?