fix(angular.equals): correctly compare regular expressions

Regular expression objects were never considered to be equal when using
'angular.equals'. Dirty checking therefore failed to recognize a
property modification.

Closes #2715
Fixes #2685