Added precision-related getters

Created getters hasFinitePrecision, precision and scale.

Also provided tests to verify the workings of the implementation.
Merge pull request #9 from stevenroose/precision-scale

Added precision-related getters