To obtain the units of recorded variables, we now query the celltype.

implements #173