Making XML to array conversions extendable in subclasses