Sebastian Scatularo - added functionality to allow inject primitive types