I encountered the same bugs and I read the Smarty_BC_2Notes as suggested and looked into which object I was passing. I still can't solve the problem. I am stuck.
I am new to this world and to Smarty and am trying to work around this problem myself. I went on the link shared, but I still can't figure it out. Could you please give a simpler explanation?