Make unmarshalling of variant types case insensitive

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>