Fix typed object test for platforms without TypedObject defined.