Prettify the layout typeclass
need to split current Layout class into Layout and Dense layout, current api assumes too much dense