Fixed a bug with or-exp and began implementing (ref x)