add check for duplicated elements in user-provided model syntax