Typo fixes and some improvements to autopointer.