Add a test for a sub-template with a parameter that has a default value defined in the parent template.
Fix stack frame offset for JS and PHP tests.