IDatasetForm fixes

Collecting various small bug fixes related to IDatasetForm into one pull request. See the idatasetform issues label: https://github.com/okfn/ckan/issues?labels=idatasetform&page=1&state=open