fix entity contents validation

Signed-off-by: Jan Dvořák <mordae@anilinux.org>
validate key types

Signed-off-by: Jan Dvořák <mordae@anilinux.org>