Add foreach functions to types with objects/properties GPtrArray