Changed TypeEncoding/Decoding Exceptions to runtime exceptions

Fixes #79