[scala] Improve the API of LinkT's #link(), #ajaxLink() and #statelessLink()