Fixed bug in property value parsing

Caused errors when collection of enum should be parsed, afield pointed me to that.