Corrected a typo.
Implemented polygon queries for ways and relations. Not yet tested.