Doc #5829: Improve constructor definitions and fix issues in Layer's inline docs