svg layering: improved handling of focus-based layering
updated element sorting/layering logic
updated demo