fix: now able to also serialize super class variables