core: creating one big list of kernels and dependencies out of nested computations

Necessary step for implementing the memory packing