Add schemas code, second attempt.

At least in older versions of Scala, not all collections of Int are guaranteed to use an unboxed representation. I don't want to second guess what the compiler is doing to convert between the various collections.

http://stackoverflow.com/questions/13084290/how-can-i-use-primitives-in-scala