Fixed deleting types.
Fixed the PUT /filetypes/type endpoint.