Add support for cursor settings in grid and sequential layout
Improve error handling of anchor layout.

- throw exception if placing fails, instead of just not working