Refactor sem_check_concat_param
Remove unused argument to sem_check_concat_param
Reorder functions for better readability
Improve concatenation checks