Fixed two issues when integrating with telcos

1. Tolerate extra methods on native Array type.
2. Fix map.Control.allOverlayLayers to not return an array of nulls.