Fix array write and duplicate dependencies.
@rev byao@
Merging origin/jgoodman/master-pending-libdependenciesfix into master