Implement Enum for maps and add map_size to Kernel