A new study may upend some assumptions about bear smarts.