Mostly fixed the NetCDF implementation, although this will lead to big problems if a netcdf operation ever ends up in the GLOperationOptimizer.
Added a check to prevent operations from becoming dependent on themselves.
Updated commented on the expected amount of time for the code sample to run.