removed bad hack
cleaning up
fix inf loop in RefactorSubtensors
add_profilers
more robust cloning in UpdateFGraph
add len and iter to workspace
more general ViewWorkspace