DI Container for Google Closure with automatic registration and resolving based on types