hacked in preliminary metadata support for fields (only variables for now)

it is pretty rough around the edges and needs tests badly - but kind of
works! :)