Fixed bug with deserialisation of OptionType (Has looked for elements name and value, not attributes)