Schema.getType() refactored.