Added checkForDuplicateWhenBlocksOfSameType validation rule

Also added quickfix for this issue