inline and optimize TArray expressions when possible