Fix str/bytes-related IronPython incompatibilities
Use MemoryRepository for test on IronPython
Fix broken subscribe_test on IronPython