Just like with Alison's other bizarre appearances, we have to assume this is a dream/hallucination. Even if she's just a figment of Spencer's subconscious, this dead girl seems to have a useful clue or two in mind. If only she'd explain what she means instead of talking in riddles...