Improve type link generation in autoApiBox