Expand product of three or more linear expressions (#260)