Added default type to sitedata; fixed bug saving entity for newly created type