Fixed some memory problems in Manual, iapi, and objects

#454