Added bytearray::length static methods.