8350 (old) GridFieldDetailForm ClassName change fix

Fixes the GridField/ModelAdmin edit forms not reloading correctly when the ClassName is changed on save.

As discussed in the archived ticket [http://open.silverstripe.org/ticket/8350](http://open.silverstripe.org/ticket/8350), but adapted to use the existing code from CMSMain->save() (modified to suit the context).