Fixed model dependencies printing in tpl

Added printObject helper to use tosource in tpl.