change length, size and capacity accessors as functions.
fix deps of array.o