WIP: fixing more AutoPtr
Everything compiles.