Added ability to parse long values.

This fixes an issue where numeric values longer than 10 digits would
trigger a parsing failure.