Fixed use getTypeData() for entity object when passing into TypedData::createInstance().