Embedded classes reflection new instance creation with internal PHP classes

Please see #1213.