Add ability to get current depth within graph_map.
Fixed some bugs, minor enhancments

	* dlist reverse copy bug
	* various compile time errors fixed