Added support for Guid and templatized SetEntity.