Fixed a few intermediate related bugs.
Merge branch 'memory_pragmatic' of https://github.com/OsmSharp/OsmSharp into memory_pragmatic