Added codec for decimal types.