* ggml: allow passing alloc dependencies in graph_optimize * add alloc dep tests * add TODO about using flat array