Fix concatenate type inference to match (correct) numpy behaviour.