add following accessor: optional_front, optional_back, optional_at.