Fixed dependency injection compilation for scalar values and constructor args