Allow insert/update forms without a collection as long as an onSubmit hook is present
Added option to replace existing hooks rather than appending to the list, which is useful for hooks which are closures