Bug 1038887 - Add back null check to nsErrorService::GetErrorStringBundle. r=froydnj
Bug 1038966, part 1 - AllocShmem and AllocUnsafeShmem do not need to use nsAutoPtr. r=bent

Also clean up the generated code a bit.
Bug 1038966, part 2 - Rename autoptr methods to refptr in lower.py. r=bent

Rename these before changing the definition to reduce the noise in the next patch.
Bug 1038966, part 3 - Shmem should use refcounted pointer classes when creating SharedMemory. r=bent