add convenience getitem accessor and iterator, test them slightly, turn empty keys/values into empty strings
add TODO items for template parser