check for duplicate entity definitions in input