Rename iterators
Added iterator for array and grid mapping
Refactored layer manager into drawstack class