jquery core: Simplifying isEmptyObject() and adding tests.