API: Revised mechanism for map element interception traces

Each trace now uses a TraceState which passed as an argument to the
path trace callback function. The old global variables accessed via
Get/Set have been removed.

Important: Although each trace now utilizes an independent state it
is not yet possible to run nested traces.