Fixed toDouble() method for utf8string and bytearray classes.