Rename 'chidren' to 'layers'
Modifications to as.vega to make basic plots work