fix-#787: Fix storing value of precision attribute in DecimalField

fixes #787