Better ordering of goals when trying message sending static binding optimizations