minor optimizations in runLayoutRules
Make attributes readwrite - again