cloneAndSetNode now uses key instead of value index
tidying up