added support for repeated fields in from_hash