Added support for providing traits inline when embedding fragments

@nrschultz