Gröbner bases and primary decomposition in polynomial rings in one variable over Dedekind domains