doctest tweaks for path.py
general: duplicate(addShape=1) - bug has inconsistent error message, assume it is the cause of RuntimeError