Fix a bug in UIElement's CalculateLayout() that caused an infinite loop with certain flex scale values .  Fixes #529