Fixing an conditional in Template::_parseDotNotation() and adding Template::_recursiveConvertObjectToArray() and using that to ensure all template variables are arrays so dot notation now works with passed objects.