[FIX] DOM API: constructors updated to avoid additional copy operations