Bug 1028910: Improve types at branches with MIsObject. r=h4writer.