Consistent setting of enum and flag property

Merged Mark Nauwelaerts requested to merge mnauw/pygobject:enum_flag_property into master

... as well as a minor cleanup.

See commit message for details, but basically it makes setting a flag or enum property consistent whether this is done based on introspection data or param spec.

Merge request reports