Issue #425: checking that custom layer is at least a leaflet class