Fixed bug in unpacking inlined xsd:decimal values.
Code cleanup.