Fix prefix handling in src and val.

There may still be some errors in some cases. I'll come back to this
later. For now, samples 60 and 62 are both working.

Next up is to complete the math expression parsing I started earlier -
mainly using the a+*b syntax.