Fixed SmartyView::setAttributesByRef, closes #126. Changed visibility of $smarty from private to protected.