Fix `glue` to support full template stack

The current implementation of `glue` support the glued content to use attributes only. So `glue` should basically do the same thing as `child` (except supporting collections) but merge the result into the parent object instead of injecting it at a given key.