[JBMAR-144] Exploit addAll/putAll optimization to bypass comparator checks if possible
[JBMAR-144] Test