Minor optimizations and bug fixes to Layer handling

LayerCount and LayersWithGeometryCount convenience properties are
removed in favor of two separate lists…one with the entire Layer table,
one only containing those Layers that have geometry.