Support retrieving complex types from registries via Guava type tokens (#308).