Fix for bug 825628 (Implement NamedConstructor) - add codegen support for NamedConstructor. r=bz.

--HG--
extra : rebase_source : 8393995dca6f65cb49512874c1916ee745436638
Fix for bug 825628 (Implement NamedConstructor) - use NamedConstructor for Image() and Option(). r=bz.

--HG--
extra : rebase_source : f48e0ded2374d84b89d585309309b1a42a95d868