Support PassByReference parameter and add PassByReferenceResolverIntegrationTest

Also add for easier usage:
- BaseContainer implements ContainerInterface
- BaseResolver implements ResolverInterface