Simplify graph nodes to only kernel application and array input (treat scalars as 0d arrays)