Add setGroupingHash method to Bugsnag_Error class.

Added a new setGroupingHash method to the Bugsnag_Error class. This is to be called in the beforeNotifyFunction. The toArray method was updated to only include the groupingHash if it has been set.