manipulation: fixed setting `parent` reference in `prepend` 

fixes second part of #7