Fix for #96 Handle optional parameters for constructor/method injection