consistent api for merge_classes()
add outlines to top-level layout when debugging