Added missing dependency on array.wrap.
Implemented header autogeneration.