GROOVY-6266: add more generics information for maps and move getType information into existsProperty