Open DataTypeId API
add TypeId for consistent api
removed apps that do not compile
use reference of service type T
add methods to get id for typename
add count of type