Allow per-subdomain SCALAR variable support
Clarify documentation comments
Assert old SCALAR dof requests are appropriate

I doubt anyone will repeat the bug I just fixed, but if they do let's
try to do a better job of catching it.
Merge branch 'sparse_scalars'

Squashed some bugfix commits and fixed some whitespace errors.

See also #341.