Upate ctor code in PHP classes.

Ctors in PHP classes now need to build a map of element names.
Merge branch 'element-names' into develop
Merge branch 'develop'