Changed that schema writer uses Schema instance instead of an schema definition array
Added toArray()-method on Schema