don't enlarge viewbox when bounded is requested
remove some dead code
give slight preference to full-word matches when reranking

fixes https://trac.openstreetmap.org/ticket/5094
fix PHP warnings about undefined variables