Add decimal type decoding

Closes #8. Closes #1.