I wish I could say why that doesn't work under strict (perhaps someone more knowledgeable will come along with that answer), however this will get your code working...
for(var childObj : Object in o.transform){
var child : Transform = childObj as Transform;
child.renderer.material = m;
}