save _oldvisit function in _brain object

I wanted to be able to use custom functions within the visit-method. In order to be able to do this to the external brain-object in the, this change saves the _oldvisit-function in the brain-object as well, to fix scoping problems.