Bug 873647 - Teach codegen how to wrap Dates in constructors. r=bz

--HG--
extra : rebase_source : f4267f15b7076aacb47fb94e4173a05dac8de255