Heavily refactored LiteralNode and added support for line numbers in the error message