Changes references to ':type' to ':as' in docs