Add suport for anonymous definitions as injections