fix(angular.copy): clone regexp flags correctly