Fix the geometry related breakage

@mlucy wanted me to move the check into obj_or_seq_op_term_t, but none
of us checked that all consumers of that shouldn’t consume ptypes.
Fix temporary leakage here

@Tryneus caught leakage of a temporary here.

This and its parent were approved in CR 2144.