WIP: Attribute expressions

closes #659
this isn't particularly general, which annoys me a little bit