Override putAll to be compatible with java 8. Since java 8 doesn't use put during putAll operation, overriding only put is no longer enough