Deduplicate <form>, fixes #3864