assign rank of sea and coastline before area catchall
handle duplicate word entries correctly when looking for nearest street
avoid unnamed streets in associated street relations

fixes https://trac.openstreetmap.org/ticket/4877