semantic: Add createTempArrayStruct function.