also allow unicode, bytes, bytearray, dict -> fixes #297