Fix bug in model constructor for collection fields with string keys.