Your napping habits might be a warning flag for dementia, a new study says.