BTW, an alternative way of repeating an array, would be to "populate" Seq with array references, and then smooth out the following:
def repeat[V: Manifest](original: Array[V], times: Int) : Array[V] = Seq.fill(times)(original).flatten.toArray;
source share