Show how the Visual class can have boilerplate of Function

This shows in line_visual2.py how the base Visual class could
be modified to take care of the boilerplate code for Functions.
This would remove the need of the ModularProgram class.

If we like this, I suggest we update the Visual class in
scene/visuals/visual.py accordingly.