catch possible TypeError and ValueError from serializer
add test to show TypeError can occur
update to make test run red
passes tests
Merge pull request #205 from HereLabsInc/catch_decoding_errors

catch possible TypeError and ValueError from serializer