Replace some implicit def = new with classes

Even if they don't have better performance, they do provide better
checking, which also caught a bug in SQLType.array