fixes #770 : Persisting last cell language in variable

Using the variable instead of storing the language in an array
This variable isn't logically part of the prompt history "class", because it is only used in init.