fix(uiView): Fixed infinite loop when is called $state.go() from a controller. Fixes #1194
Merge branch 'issue-1194'
fix(common): replaced deep copy with shallow copy