allows date types to parse iso date strings
parse date first before trying parseInt
try parsing date as original value first, then fallback to parseInt
fix issue ref in test
name date test assertions
combine dateVal var creation and assigning to one line
Use toJSON and hardcoded string in tests to ensure we're testing the right thing