[php] wrap TEnumParameter in `_hx_deref` because it could contain constructors
[python] recurse into TEnumParameter (see #3088)