Fix for issue 6. The dirty flag is now set with an _invalidate function,
this is then overridden in the DisplayObjectContainer to ensure that
all children also get invalidated.