Fix an issue with integer literals in code generation.
Add Median example.