fix(angular.copy): support circular references in the value being copied

Closes #7618