Have added more control to "toValue" injection type.
Added optional parameters: autoinject and autodestroy.