Fixing forgotten strdup()
Moving mapfile property to context until next major

The id_mapping structure is included inside the context. Expanding it would cause binary incpomatibility.