New method to duplicate a vector layer in memory and optionally add it to the map registry
make menthod and variable naming consistent, some cleanup