Basic parsing of integer and variable reference literals

Depends on #141 

Implements basic parsing for integer and variable reference literals
Out of curiosity, how come this had to be reworked?