Deallocate ways and relations in `stop()`.

Previously was deallocating at least some parts during
`iterate_ways` and `iterate_relations`, which meant that any
attempt after that to read ways or relations data returned that
they weren't present.