reversion (partially) to Reflection again to counter php's ability to unset properties which then don't get cast to array