Fixes #1 state:fixed; comment: added failing test and resolved problem with Literal handling