The line said layers were not there yet, while a page item's parent is already a Layer with name, typename and toString. It now names Document.layers and Document.activeLayer as the members still missing.