Added test case and fix for decimal primitive type handling

Added read and write primitive methods for decimal types. Currently
these are not optimized for using varint encoding when they could. These
changes fix issue#60 of  antmicro/Migrant.
Merge branch 'issue60' into issue53