2.8 backports

This pull request contains some backport fixes like in the open pullrequest for 2.7-stable and 2.9-stable.
I also raised the version to 2.8.2 within this pull request.