Added fix for tag list encoder.

Added fix for tag list encoder. Fixed test with tag lists. Bumped version to 0.3.1