Add check for Enum type in Assert

Assert in scatter method did not handle case where value type is an EnumType.