api.rst: fix some spelling/typos