Add failing test for issue gh-6282
Cast module name to bytes for Py2 ModuleType constructor

Closes gh-6282
Merge pull request #6286 from takluyver/i6282

Fix issue 6282