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