Embedded classes reflection new instance creation with internal PHP classes

@austinsmorris thanks for noticing that! I'll check locally and integrate the PR as soon as possible.