Probably just an oversight and it's easily worked around, but for consistency there should be a "Modeling > Set Datatype" context menu action for parameters and return parameters of scalar functions.