Mental bug fix wrt. element/type as root - and some other details.