XScale: context restore, cleanup/bugfix