Make `use_units` argument in `Group.state` optional.
Fix a bug in subexpression handling