Fixed bug in conversion of InstanceType and Region to java types