Fix error in metamodel generation when initializing enum properties

Change-Id: If02783a7d51c0d98247114f02f4bad334c6d9fee
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>