Added UnboundLocalError with code 500-12.
Timeseries can now be filtered by value_type.