Base64 for typed arrays and some fixes