Fix code generation for property metadata

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