Gui 1333 add warning when copying object onto itself.

https://eucalyptus.atlassian.net/browse/GUI-1333
@dkavanagh: Consider using angular.forEach or array.prototype.forEach (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach) here.