Use type parameter in add() of InputFrontEnd / PluginFrontEnd

Improved type safety / less casting needed