fix renderCode depth nonsense
when saving a code, if code is already in the list of recent codes, don't add a duplicate
rename CodeRef to CodeOrPath