Statically resolve list references

Closes https://github.com/nathan/phosphorus/issues/188