Fixed long-standing bug (finally) whereby incorrect keywords where being copied from the user template to new resources. Keywords for other resource types were still stored on the user template even if the resource type was changed. These unrelated keywords were then being copied to new resources.
Also allowed resource type to be changed when editing resources normally.