Basic parsing of integer and variable reference literals

Depends on #141 

Implements basic parsing for integer and variable reference literals
So one of these can just go anywhere a value would be allowed. Nice, that's first-class functions for free.