Changes objects() staticmethod to types().