* added plain template to $l.templates.
* fragment node checks added for nodetypes.