[platform] get rid of some raw types in facets API and impl