Layers are actually defined as integers, it can be very confusing if you're accustomed to the fancy dropdowns that are made in custom inspectors.
I don't think there is a simple way to fix the drop-down in this case, so you may be stuck with integers here unless someone corrects me on this.