Fix handling of guest role
Role check didn't work correctly in some cases because the enum values
were of type number and didn't match API response values. Furthermore,
methods for entity classes don't work for objects created by Angular's
HttpClient
.