Updated typecraft writer to conform to new schema.