api: minor fixes for auto-doc parser