Quick fix to be able to document variables

@variable will produce a variable block into the JSON, and the viewer
has initial support for showing those.