feat(angular.isRegExp): check object type for regular expressions

In order to fix #2685, we need to differentiate between regular
expression objects and other types. Angular could expose a public
function 'angular.isRegExp' through which this could be done.

This serves as a preparation for a follow-up pull request for a change to `angular.equals` (which will fix #2685).