Add type_changed check to JS to allow form to refresh when provisioning ...

...a discovered host

There's no redmine for this yet, will create one while it's being reviewed.