Fixed parsing of collections containing only primitives