Casimir elements and center at the critical level for Takiff algebras