Default WKBWriter to 2 dimensions unless 3rd is detected