Fields as functions

https://github.com/kfgodel/diamond/issues/102