feat(extend): optionally deep-extend when last parameter is `true`

Same as #10507 but with my review comments addressed and jscs fixed.

Someone quickly review this so we can land it :<
We ought to have a `@param` tag for this but I am not sure how that fits with the variable argument `src`.