Bug fix for Autotrack inadvertently removing form.inputs in certain cases
v2.16.0 made it possible for replace to be called on an input element if it has id="name" or name="id". This revision guards against this by ensuring type is string before calling any replace.