Make deep .extend() an optional argument - it will go deep if you pass in an boolean as the first argument (fixed bug #1028).