Move guts of MBigDecimal to common/types.
merge MMcM: Move guts of MBigDecimal to common/types.

Merge pull request #1166 from MMcM/sql-layer/common-big-decimal-type
https://github.com/FoundationDB/sql-layer/pull/1166