Draft: Accept datum lines and planes as references
Miscellaneous fixes