CODEX: Role of velocity substructure in the scaling relations of galaxy clusters