Removed typeFunc decorator, since it's not used anywhere.
Removed isType, since it's not used anywhere.
Removed dangling comments.
Refactored labrad.types.flatten and did some documentation/whitespace.
Substantial changes to flattening code paths.

For each LRType subclass, the __flatten__ method now returns a tuple of
the flattened string and the type object used for flattening. This allows
us to support cases like flattening 4 for a setting requiring 'v', where
the type tag sent over the wire must be 'v[]', not 'v'.
Fixed expected type in a test.