Allow compiling a dependency container with all services declared

Provides a compiler that can build a type-hinted class declaring
getters for all dependencies, to improve autocompletion and IDE
recognition of the relevant classes.