add digits! function

Added a digits! function, with an optimization for the arguably common case of base = 2.
Moreover, the rest of the array *should* be filled with zeros, not left untouched. If you want to leave the rest of the array untouched, the best API would be to use a view into the array that has shorter length. This will be the default if you slice into the array in 0.4.