Fix geometry type restriction (fixes #32)