map!, similar and eltype for DArray and SharedArrays
Merge pull request #5914 from amitmurthy/amitm/map!

map!, similar and eltype for DArray and SharedArrays