default input helper to type="text" if no type given

fixes #2595