Support lxly quad meshing

This is follow up of #494.
Just small changes as stated in the commit messages.