improved literal detection (#13)
added test (#13)