fix typos

minor typos and namespace type hinting fixes