Adds array and collections tests

There are no limitations for the types of fields. Here, this is a 
limitation/feature of Scala that you can not access class fields that do 
not have a val/var keyword in front.

E.g. (new Mother(...)).numChildren gives a compilation error.
On 12/09/14 21:21, Heather Miller wrote:
>
> In tests/src/test/scala/records/test/FieldsAsArraysTest.scala:
>
> > @@ -0,0 +1,124 @@
> > +package records.test
> > +
> > +import org.scalatest._
> > +
> > +// This is for 2.10.x compatibility!
> > +import scala.language.reflectiveCalls
> > +
> > +class Creature { def name: String; def age: Int }
> > +case class Person(name: String, age: Int) extends Creature
> > +case class Employee(p: Person, title: String)
> > +class Mother(p: Person, numChildren: Int)
>
> Can you explain what sorts of classes/etc are valid to match a record 
> with and what's not? I see that case classes work, but from your 
> answer, I infer that you support only classes with constructor 
> parameters that are made public fields... This isn't documented anywhere.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/scala-records/scala-records/pull/102/files#r17497653>.
>