Totally redid arrays, added automagic function dependency computation.