Making arrays remember their length.