Fix label links for a merge request pointing to issues list
_Originally opened at !2150._
---
I have added a type parameter to the `link_to_label` helper method that is set to `'merge_request'` when in the context of a merge request.
I have also improved the specs to actually test the output of the method instead of its implementation.
Fixes#3007.
See merge request !2700